package com.xw.model;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import javax.persistence.*;

@Getter
@Setter
@Table(name = "orders_item")
public class OrdersItem {
    /**
     * 订单子表id
     */
    @Id
    private String id;

    private String phone;

    @Column(name = "order_no")
    private String orderNo;

    /**
     * 课程id
     */
    @Column(name = "video_id")
    private String videoId;

    /**
     * 课程名称
     */
    @Column(name = "video_name")
    private String videoName;

    /**
     * 课程图片地址
     */
    @Column(name = "video_image")
    private String videoImage;

    /**
     * 生成订单时的课程单价，单位是元,保留两位小数
     */
    @Column(name = "video_current_price")
    private Double videoCurrentPrice;

    /**
     * 商品数量
     */
    private Integer quantity;

    /**
     * 商品总价,单位是元,保留两位小数
     */
    @Column(name = "total_price")
    private Double totalPrice;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

}